旋转一个对象
[helpstring("method Rotate")] HRESULT Rotate([in] IMxDrawPoint* basePoint, [in] DOUBLE dRotationAngle);
参数 |
说明 |
[in] IMxDrawPoint* basePoint |
旋转基点 |
[in] DOUBLE dRotationAngle |
旋转角度 |
例如: C#使用例子
MxDrawDatabase database = (MxDrawDatabase)axMxDrawX1.GetDatabase();
Int32 id = axMxDrawX1.DrawLine(10, 10, 20, 10);
MxDrawEntity pEnt = (MxDrawEntity)database.ObjectIdToObject(id);
MxDrawPoint point = new MxDrawPoint();
point.x = 10;
point.y = 10;
pEnt.Rotate(point, 45 * 3.14159265 / 180.0);
axMxDrawX1.ZoomAll();